package com.yc.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yc.model.Dishesinfo;
import com.yc.model.Userinfo;
import com.yc.model.UserinfoExample;

public interface UserService
{
	 int deleteByExample(UserinfoExample example);

	    int deleteByPrimaryKey(Integer userid);

	    int insert(Userinfo record);

	    int insertSelective(Userinfo record);

	    List<Userinfo> selectByExample(UserinfoExample example);

	    Userinfo selectByPrimaryKey(Integer userid);

	    int updateByExampleSelective(@Param("record") Userinfo record, @Param("example") UserinfoExample example);

	    int updateByExample(@Param("record") Userinfo record, @Param("example") UserinfoExample example);

	    int updateByPrimaryKeySelective(Userinfo record);

	    int updateByPrimaryKey(Userinfo record);
	    
	  //登录
		Userinfo loginUser(String userAccount,String userPass);
		
		//修改
		int modifyUserService(Userinfo us);
		
		//添加用户
		int addUser(Userinfo us);


		int getMaxPage(int num);


		//查看所有用户
		 List<Userinfo> findByAllUserService();

		Userinfo getUserById(Integer userId);
		
		void ModifyUserById(Userinfo record);
		//查看在线厨师
		 List<Userinfo> selectByOnlineChef();
}
